package controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import service.PayCallbackService;

import java.util.Map;

/**
 * @Author: YLTDMenglc
 * @Date: 2019/6/11
 * @Time: 13:01
 * @Description:
 */
@RestController
public class PayCallbackController {
    @Autowired
    private PayCallbackService payCallbackService;

    @RequestMapping("/payCallback")
    public String payCallback(Map<String, String> verifySignature) {
        payCallbackService.callback(verifySignature);
        return "success";
    }
}
